package com.example.myactspringboot.dao;

import com.example.myactspringboot.annotation.DBMapper;
import com.example.myactspringboot.bean.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Create 2023-09-23 08:34
 * @Description
 */
@Mapper
//@DBMapper
public interface SysUserMapper {
    SysUser getUserByName(String name);

    @Select("select * from sys_user")
    List<SysUser> getAllUser();

    SysUser selectUserByLoginName(String userName);

    List<SysUser> getUserByRoleId(List<String> roleIds);
}
